* API: fixed caching header per jeluf's fix in query.php
authorYuri Astrakhan <yurik@users.mediawiki.org>
Fri, 13 Oct 2006 05:28:28 +0000 (05:28 +0000)
committerYuri Astrakhan <yurik@users.mediawiki.org>
Fri, 13 Oct 2006 05:28:28 +0000 (05:28 +0000)
includes/api/ApiFormatBase.php

index 92c9213..c886a15 100644 (file)
@@ -76,7 +76,8 @@ abstract class ApiFormatBase extends ApiBase {
                $isHtml = $this->getIsHtml();
                $mime = $isHtml ? 'text/html' : $this->getMimeType();
                header("Content-Type: $mime; charset=utf-8;");
-
+               header("Cache-Control: private, s-maxage=0, max-age=0");
+               
                if ($isHtml) {
 ?>
                <html>